package com.sm.tool.entity.po;

import com.baomidou.mybatisplus.annotation.Version;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class ActivityTicket_ {
    /**
     * CREATE TABLE `sm_activity_ticket_1` (
     *   `id` bigint(21) NOT NULL,
     *   `activity_id` bigint(21) NOT NULL COMMENT '活动id',
     *   `ticket_id` bigint(21) NOT NULL COMMENT '优惠卷id',
     *   `number` int(11) NOT NULL COMMENT '该活动绑定了多少张该券',
     *   `version` bigint(21) DEFAULT NULL COMMENT '乐观锁字段',
     *   `create_time` datetime DEFAULT CURRENT_TIMESTAMP,
     *   PRIMARY KEY (`id`)
     * ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
     */

    private Long id;

    private Long activityId;

    private Long ticketId;

    private Integer number;

    @Version
    private Long version;
}
